home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
The World of Computer Software.iso
/
prohp1.zip
/
READ.ME
< prev
next >
Wrap
Text File
|
1992-11-13
|
19KB
|
549 lines
Dear Clipper programmer,
Thank you for using the ProHP demo.
+*******************************************************************+
| ProHP is the Best and Most Powerful |
| Laser Printer Library for Clipper |
+*******************************************************************+
TAKE TOTAL CONTROL OF YOUR LASER PRINTER.
ProHP's flexibility and ease of use gives you accurate and
professional results every time. You don't need to learn how
laser printer works
*** No Compiling needed to run this demo ***
Execute DEMO.BAT and the ProHP demo will print sample program
pages, a function summary and a sample program listing. After
printing, take a look at the program code to see how ProHP works.
This demo contains several programs that you can not compile
without the library, however we included the output in files with
the same name but with extention '.HPC' .
The ProHP library allows you to store the function results as a
string variable which you can save to a file for later use.
Over 80 ProHP functions and descriptions, and over 30 sample
programs come with the library, browse thru that list and see how
your work-load can be reduced.
We hope you enjoy this demo. It's only the "Tip Of The Iceberg"!
ProHP tm developed by I.L.A., Inc., Florida.
(c) Copyright 1992 I.L.A., Inc. All rights reserved.
+===============================================+
| No-Risk |
| 30 Day Money Back Guarantee |
| Free upgrades during the first 90 days |
+===============================================+
Pricing:
ProHP - Library US$ 149.-
Add shipping charges
Europe US$ 25.- (Air Mail, Prepaid)
USA,Canada US$ 8.50 (UPS Ground)
COD (US only add $4.-)
Other countries please call.
We accept VISA, MasterCard and Checks drawn on US banks.
For More Information and to ORDER call 1-800-374-7734 (U.S.A. Only)
9am-5pm EST
International Call +1 (407) 774-7734, Fax : +1 (407) 774-6750
or
Send a message via Compuserve to Zion Nefesh 70712,3072
+*********************************************+
Development and support
I.L.A., Inc.
520 W. Hwy 436 #1180
Altamonte Springs, FL 32714
Tel. (407) 774-7734
Fax. (407) 774-6750
CIS: Zion Nefesh 70712,3072
+*********************************************+
ProHP - Function Summary
-------------------------
HP_aatsay( nTop, nLeft, aCstr [,nInc [,cJust]])
Prints an array of text, left, center or right justify, starting
at any location on the page, using any font.
HP_atsay( [nTop] , [nLeft],cStr[,lRel])
Prints text anywhere on the page. Specify absolute or relative
coordinates. You can specify measurements use row/col, inches or
centimeters after setting HPsizes().
HP_bar( nHeight, nWidth [,nFill [,nGrayPat]] )
Draw bars at the current cursor position. By changing the size
of nHeight and nWidth you can draw Horizontal bars, vertical
bars and rectangles (up to full page size).HP_bar() Uses gray
shades and patterns
HP_box( nTop, nLeft, nHeight, nWidth [,nLineWidth [,nFill at]]])
Draw boxes with control on line width, line type and shadow.
HP_center(nTop, nLeft, cStr [,nWidth])
Center a text over a column/point or in width.
HP_callmac(nMid)
Call a previously defined macro.
HP_clrmrg()
Clear the printer horizontal margins.
HP_cols( nCols )
Sets the number of columns per inch.
HP_copies(nCopies)
Use this command before the print job. You can change the number
of copies any time you desire. The last setting of nCopies is in
effect until the next printer reset.
HP_data(nIndex, Value)
HP_data() is used by ProHP for exchange of data between the
functions.
HP_diagtext(nTop,nLeft ,cStr [,nIncTop [,nIncLeft [,lRel] ] ] )
Print text diagonally, in any angle.
HP_endmacro( [nMacroId], [nStat] )
Close a macro definition.
HP_envelope( nEnvType )
Set the printer for envelope printing.
HP_execmacro( nMid )
Execute a macro.
HP_feed( [nFeed] )
Select source of input, paper or envelope. Upper/Lower Tray,
manual or envelope feeder.
HP_fillbox( nTop, nLeft, nHeight, nWidth [,nLineWidth [,nFillBox
[,nGrayPat]]] )
This allows you to draw different types of filled boxes and
control line width, fill type and shadow.
HP_font( cFont [,nAction [,nFontID ] ] )
ProHP is smart. ProHP learns the soft font loaded and adjusts
its environment to fit the use of this font.
HP_fontctrl( [nFontID] , nCtrl )
This helps you control the font downloaded to the printer. If
your printer memory has limited space and you need to optimize
the use of fonts, this helps you remove specific fonts and allow
space for new ones.
HP_hline( nTop, nLeft, nLength [,nLineWidth [,nFill [,nGrayPat]]] )
Draw a horizontal line.
HP_hmi( nHmi )
Fixed spacing fonts are affected by HMI change. When
proportional fonts are used, only the space character is
affected. The default HMI is set to the pitch value in the font
header.
HP_init()
HP_init() resets HP_data() array to its default.
HP_lmset( nLm )
Set the left margin
HP_lmiset( nLmi )
Set the left margin in inches.
HP_lmcmset( nLmCm )
Set the left margin in centimeters.
HP_lpi( nLpi )
Set number of Lines Per Inch. This function sets the internal
VMI setting.
HP_macrocmd( nMacroCmd , nMacroId )
This macro control function lets you define, invoke and delete
macros.
HP_mkshadow( nTop,nLeft,nHeight,nWidth [,nShwdth [,nShfill
[,nShGrayPat [,nShtype]]]])
Draws a shadow around an imaginary box, ignoring the status of
HPshadow().
HP_moverlay( lSw , nMacroId )
Enable or Disable automatic overlay action to a macro.
HP_orient( nOrient )
Sets the print direction with respect to the physical page. You
can use this command only once per page. This command sets the
defaults of page length, text length, margins, VMI, HMI.
HP_pagesize( nPageSize )
Select the page size used for printing. (Letter, legal,
executive, A4)
HP_pitch( nPitch, nStyle, cSymbol )
This function helps you manipulate the Courier font in the
printer, selecting the pitch, style and symbol set.
HP_prdirect( nDir )
Sets the direction of printing. (works with HP III, PCL 5) this
command will not print the page out like when changing
orientation.
HP_rbox( nHeight, nWidth [,nLineWidth [,nFill [,nGrayPat]]])
Draw a box at the current cursor position.
HP_rcpos( nTop ,nLeft ,lRel )
Set row and column coordinates regardless of HPsizes() status.
HP_rcsay( nRow ,nCol, cStr ,lRel )
This function allows you print at any Row/Column coordinates on
the page ignoring the state of HPsizes().
HP_reset()
Send a reset command to the printer.
HP_rjust()
Right justify a text.
HP_rline( nHeight, nWidth [,nFill [,nGrayPat]] )
Draw lines at the current cursor position. By changing the size
of nHeight and nWidth you can draw Horizontal lines, vertical
lines and rectangles (up to full page size).
HP_rmset( nRm )
Set the right margin.
HP_rmiset( nRmi )
Set the right margin in inches.
HP_rmcmset( nRmCm )
Set the right margin in centimeters.
HP_savecsr(),HP_restcsr()
Push/Pop the current cursor position to/from stack.
HP_scalef( nPoint[,nStyle[,nWgt[,cSymbol[,nTypeFace]]]])
Use scalable fonts.
HP_send( lSend )
HP_send() causes ProHP to switch from sending printer code to
the output device or returning them as HPC (string variable).
HP_setpos( [ nTop ], [ nLeft ], [ lRel ] )
Control the cursor position, absolute and relative positioning.
HP_stmacro( nMacroId )
Call this function as the first step in creating a macro.
HP_sub( cStr )
Prints text in subscript mode.
HP_super( cStr )
Prints text in superscript.
HP_symbol( cSymbol )
Set a symbol set as the default set.
HP_textleng( nTextLength )
Set the number of lines per page before auto eject.
HP_tmset( nTopMargin )
This command designates the number of lines between the top of
the page to the top of the text area.
HP_tmiset( nTMi )
Set top margin in inches.
HP_tmcmset( nTMi )
Set top margin in centimeters.
HP_ulset( lUnderline )
Set underline mode ON or OFF.
HPulstr( cStr )
Underline text.
HP_usefont( nFontId )
Select the font previously downloaded to the printer with
nFontID.
HP_vline( nTop, nLeft, nLength [,nLineWidth [,nFill
Draw vertical line.
HP_vmi( nVmi )
Set Vertical Motion Index to nVmi, This command affects the line
feed, and HP_data(D_LPI) is updated to reflect the new LPI.
HP_vprint( nTop, nLeft, cStr , nInc)
This function takes cStr and prints it vertically starting at
nTop,nLeft stepping down with nInc.
HP_wrap( lWrap )
When end of line wrap is enabled, any text beyond the right
margin will be printed on the next line. If disabled, the text
after the right margin is clipped.
HPbold(nStr)
Make a boldface string. This function will work with any font.
HPccm2i( nCm )
Convert cm to inch. If HPsizes() is set to inches then nCm
converts to inches.
HPci2cm( nInch )
Convert inch size to centimeter if current size used is in
centimeters.
HPcm2col( nCm )
Convert CM to columns.
HPcm2row( nCm )
Convert CM to rows.
HPcol2cm( nCol )
Convert column coordinate to centimeters.
HPcol2i( nCol )
Get the size of nColumns in inches. This function can also give
you the length of any fixed space font if HP_cols(font pitch) is
set.
HPdownload(cFontName [,cLpt [,nFontID [,nSetFont]]])
HPdownload is used for downloading any file in binary mode to
the printer. You can quickly send previously built forms and
letters or any printable file. To send, use HPdownload( cFname ,
cLpt ) where cFname is the file you want to send to the printer,
and cLpt is the output device.
HPdrawmonth( dDate, nTop, nLeft, nHeight, nWidth )
Draws a monthly calendar. The function return an array with the
coordinates of each day box. Size of calendar from 1" x 1" to a
full page.
HPfonthead( cFontName )
This font helps you explore the structure of any soft font.
HPgraytext( nStr [,nFill [,nGrayPat [,nHeight]] )
Print text on gray or pattern background.
HPhfont()
HPhfont is used to determine the cell height of the font. This
function updates each call to HP_pitch() and call to HP_font().
Use this function when you design fine graphics and need to know
the exact height of the font. You can get this information by
reading the font description data array with HPfonthead().
HPi2col( nInch )
Determine the number of columns in nInch.
HPreplicate( cStr , nWidth )
Used to repeatedly print one or more characters in nWidth.
HPsavecsr(), HPrestcsr()
Use this command when you want to save and restore the cursor
location. This function returns HPC regardless of HP_send()
status.
HProw2cm( nRow )
Convert rows to centimeters.
HProw2i( nRow )
Convert rows to inches. Useful when mixing row/col coordinates
and inches.
HPscale( nScale )
This Unique function lets you specify the scale factor for the
height and width size in the next drawings. You can match your
output to a different size area without having to recalculate
the new sizes.
HPsetshadow( nShWdth, nShFill ,nShGrayPat ,nShType )
Alternative way to set new defaults for box shadow.
HPshadow( lShadow )
ProHP will do all the calculations to draw a shadow with the
width, filltype ,gray/pattern and position. All you need is to
set HPshadow(.t.).
HPsizes( nMeasure )
Set unit of measure for ProHP functions. Not all functions
accept measures in cm or row/col.
HPstsize( cStr )
Position text anywhere you like. It is easy to justify (center
or right) when you know the text length, especially with
proportional fonts. This function works with all fixed space
fonts (even if you change HMI) and with all soft font downloaded
using HP_font(). Scalable fonts supported with this function are
CGTIMES and UNIVERSE (resident in HP III)
HPwchars( cFont )
ProHP reads the font file with all the necessary data for the
different functions needed to handle it. ProHP reads the chars
width during the process of downloading the font to the printer
when using HP_font().
Set2Print( cDevName )
Set the output device to cDevName. Use this function before
printing.
Set2Screen()
Set the output device to the screen, closing the device opened
previously with set2print(cDevName)
zAddMonth(dDate, nMonths)
Add/ deduct month(s) from a date.
zMdy2Date(nMonth, nDay, nYear)
make a date from 3 integer vars (nMonth,nDay,nYear).
ProHP - Sample Programs
-------------------------
ATSAY.PRG Shows you the use of HP_atsay() by printing a report
inside gray shaded box with drop down shadow.
BAR.PRG Another way to see and use relative movement
functions.
CALENDAR.PRG You are going to love this one. Compile and run it
NOW!.
COLS.PRG HP_cols() is very useful and powerful function. This
will draw a 15 cm ruler, and mark each millimeter.
DIAGTEXT.PRG Demonstrates how to print text diagonally.
ENVELOPE.PRG Probably the easiest way to print envelopes. This
program shows you how to print envelopes by reading
addresses from a file.
FONTS.PRG This program shows you how to manipulate fonts with
ProHP functions and select a font using an alias.
You may modify this program and adopt the technique
shown to set complicated printer environment
settings.
FILLBOX.PRG 24 different boxes are filled with gray shade
patterns and shadow printed using this program.
FONTHEAD.PRG Read any given soft font file and display the font
descriptor data.
GRAPH.PRG Demonstrate how to easily generate bar graphs. Two
methods are demonstrated here, and you can adopt it
to your needs immediately.
GRAYTEXT.PRG Demonstrates the use of HPgraytext() by printing
text with different backgrounds (gray shade or
pattern). This also shows the use of HP_font() and
how to load and use soft fonts.
HMI.PRG Demonstrate the use of HP_hmi() by showing a way to
force a 10 pitch font to be printed as 12 pitch and
16.66 pitch forced to 20 pitch. Expand any pitch
used with any fixed spacing font to any other pitch.
We drew an Inch ruler at the background of the text
to show the behavior of the text when using
HP_hmi().
HPSCALE.PRG Unique to ProHP . Change your drawing size with one
call to HPscale().
HPSHADOW.PRG Short program to show the use of shadow boxes.
LPI.PRG ProHP allows you to specify any Lines Per Inch
count. LPI.PRG shows you 4 ways to control and use
HP_lpi(). Find how many lines can be used in a box
or any Height, Set the number of lines in any Height
to fit x number of lines in that height. The use of
HProw2i() and HPcol2i() is demonstrated.
MARGINS.PRG This program demonstrates the use of margin setting
by showing you how to set margins (by sizes columns,
inch or centimeter) accurately to a of a tenth of a
millimeter.
ORIENT.PRG HP_orient is a simple function to change the page
orientation. This program shows you how to store
ProHP commands in an array of a string variable for
conditional operation.
PAGESIZE.PRG Control page size. Change page size from letter to
legal and print text on the entire page. Print 130
lines of text on a legal size paper.
PRINV.PRG Easy form building! Create an invoice form and fill
it with the invoice data. See how to resize the form
by ONE (1) command, HPscale(). ProHP saves the
invoice format to a file so you can retrieve it
later. Stay on this program, there are many good
ideas to learn here.
PUBLISH.PRG Many functions are used in this program to draw a
page of text in columns using different font sizes,
a monthly calendar and graph is inserted in the text
column. There is a lot to learn from this program.
If you understand how this program does all this
then there is no limit to what you can do with ProHP
and your printer.
RELATIVE.PRG Beautiful program to demonstrate a ProHP function
that uses relative movement and cursor location line
draw. Compile and run it- you'll be impressed.
ROW2CM.PRG Short program on HProw2cm() and other conversion
functions.
ROW2I.PRG Convert row to inchs.
SCALEF.PRG Using scalable fonts is easy with ProHP. This
program shows you how to select and use a scalable
font.
SEND.PRG HP_send() will make your laser printer programming very
easy. This short program will show you how to use it.
SHADOW.PRG This program will show you many different shadow boxes
using grays and pattern shadow.
SHADOWT.PRG Draw 9 different boxes showing all shadow types. It also
shows how to center an array of text inside a box using
code block.
STRSIZE.PRG Get string size and center it in any width and over a
column.
SUB_SUP.PRG Text printed in subscript and superscript mode is used in
this program.
SYMBOL.PRG Small program to show the use of HP_symbol()
TEXTLENG.PRG One way of using HP_textleng(). Macros use is also
shown here.
UNDERLN.PRG A very Unique way to underline text.
VPRINT.PRG Print a text vertically , move relative and center text.
E